﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Win.master" AutoEventWireup="true" CodeBehind="ProductListByKey.aspx.cs" Inherits="Runda.EShop.Web.Customer.ProductListByKey" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server"> 
<script src="../Content/Business/Order.js" type="text/javascript"></script>  
<style type="text/css">
.dialog {
	background: url("../images/btn/dialog_bg.jpg") no-repeat; padding: 10px 20px; left: 100px; top: 300px; width: 295px; height: 95px; font-size: 12px; float: left; position: absolute; z-index: 50;
}
.dialog p {
	margin: 0px; padding: 0px; width: 265px; height: 35px;
}
.dialog #txtOrderCount {
	border: 1px solid rgb(204, 204, 204); width: 140px; height: 25px;
}
 
.d_ok {
	margin-right: 5px;
}
.d_cacel {
	margin-right: 20px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chpMain" runat="server">
    <div style="display: none;" id="dialog" class="dialog">
        <input id="txtProductID" name="txtProductID" type="hidden">
        <p>请输入订购数量：<input id="txtOrderCount" onkeyup=" return myKeyDown('txtOrderCount')" name="txtOrderCount" type="text"></p>
       <table>
        <tr>
        <td style="width:90px"><span style="color: red; font-size: 12px;" id="txtMessage"></span></td>
        <td><input class="d_ok" onclick="return Ok();" name="ctl03" src="../images/btn/dialog_ok.jpg" type="image"></td>
        <td><input class="d_cacel" onclick="return Cancel();" src="../images/btn/dialog_cancel.jpg" type="image"></td>
        </tr>
        </table>            
     
    </div>
    <asp:GridView ID="gvProductList" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvProductList_RowDataBound" OnRowCommand="gvProductList_RowCommand">
        <Columns>
            <asp:TemplateField HeaderText="产品编号">
                <ItemTemplate>
                    <asp:HyperLink ID="lnkView" runat="server" NavigateUrl='<%# "ProductDetail.aspx?ProductID="+Eval("ProductID") %>'><%# Eval("ProductCode") %></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
             <asp:BoundField DataField="ProductName" HeaderText="产品名称" ItemStyle-Width="280px" />
            <asp:BoundField DataField="Alias" HeaderText="别名" ItemStyle-Width="80px" />
            <asp:BoundField DataField="Standard" HeaderText="规格" ItemStyle-Width="130px" />
            <asp:BoundField DataField="Trademark" HeaderText="品牌" ItemStyle-Width="60px" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:linkButton ID="btnAdd" runat="server" CommandName="addto" CommandArgument='<%# Eval("ProductID") %>' Text="放入常用试剂" ToolTip="点击此按钮后，当前试剂放入常用试剂列表。" />
                </ItemTemplate>
                <ItemStyle Width="240px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            系统没有找到相关产品信息
            <br />
            <asp:HyperLink ID="lnk1" runat="server" NavigateUrl="tencent://message/?uin=501313452&Site=http://www.sina.com.cn/&Menu=yes" Target="_blank">在线咨询</asp:HyperLink>
            <asp:HyperLink ID="lnk2" runat="server" NavigateUrl="~/Message/QAAdd.aspx" Target="_blank">留言</asp:HyperLink>
        </EmptyDataTemplate>
    </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" PageSize="10"
        NumericButtonCount="10" onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>
    <asp:Button ID="btnRefersh" runat="server" Text="刷新" style="display:none;" onclick="btnRefersh_Click" />
</asp:Content>
